GCC4.6: Squash undefined variable in cmd_mtdparts.c
authorMarek Vasut <[email protected]>
Fri, 21 Oct 2011 14:17:25 +0000 (14:17 +0000)
committerWolfgang Denk <[email protected]>
Thu, 27 Oct 2011 21:54:04 +0000 (23:54 +0200)
Signed-off-by: Marek Vasut <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Mike Frysinger <[email protected]>
common/cmd_mtdparts.c

index 2c2e4e09735aed78d734620ed5eb3057d0e1dfaf..b7c833b14992d365050b724060fb81c55f743e00 100644 (file)
@@ -839,9 +839,7 @@ static int device_parse(const char *const mtd_dev, const char **ret, struct mtd_
        const char *mtd_id;
        unsigned int mtd_id_len;
        const char *p;
-#ifdef DEBUG
        const char *pend;
-#endif
        LIST_HEAD(tmp_list);
        struct list_head *entry, *n;
        u16 num_parts;